package top.aicey.ai.sparring.listener;

import top.aicey.ai.sparring.dto.event.GenerateReportEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class DefaultReportProcessorExecutor implements ReportProcessorExecutor{


    @Autowired
    private ReportProcessorSelector selector;

    @Override
    public void execute(GenerateReportEvent event) {
        selector.get().generate(event);
    }
}
